package com.peanut.baby.uploader;

/**
 * Created by anonymouslystudio on 2017/6/12.
 */

public class UploadBean {
    public static final int     STATUS_WAITING      = 0;
    public static final int     STATUS_UPLOADING    = 1;
    public static final int     STATUS_SUCCESS      = 2;
    public static final int     STATUS_FAIL         = -1;

    public String   path;       //local file path
    public int      status;     //upload status
    public String   resultUrl;  //key returned from server when success
    public String   failReason; //fail reason
    public String   bucketName;
    public long     duration;

    @Override
    public String toString() {
        return "UploadBean{" +
                "path='" + path + '\'' +
                ", status=" + status +
                ", resultUrl='" + resultUrl + '\'' +
                ", failReason='" + failReason + '\'' +
                ", bucketName='" + bucketName + '\'' +
                '}';
    }
}
